package com.fyzk.activity.lottery.jc.football.newJz.data;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

/**
 * Created by fanxs11 on 16/5/3.
 *
 * 数据分析
 */
public abstract class AnalysisChildView extends LinearLayout {

    protected Context context;
    protected LinearLayout ll;

    public AnalysisChildView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        this.context = context;

        //临时数据

        initView();
    }

    public AnalysisChildView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public AnalysisChildView(Context context) {
        this(context, null);
    }

    public void initView(){
        ll = new LinearLayout(context);
        LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
        ll.setLayoutParams(params);
        ll.setOrientation(LinearLayout.VERTICAL);
        ll.setPadding(3,3,3,3);

        this.addView(ll);
    }

    protected abstract void changeData();

}
